﻿using System.Collections.Generic;
using System.Linq;
using Inscriptionem.Areas.Inscriptionem.Models.Enums;

namespace Inscriptionem.Areas.Inscriptionem.Models.Views
{
    public class PageCollectionViewModel
    {
        public IEnumerable<ORM.Page> Pages { get; protected set; }

        public PageCollectionViewModel()
        {
            Pages = new ORM.DB().Pages.OrderByDescending(p => p.ID);
        }

        public int Page { get; set; }

        public OrderError Error { get; set; }
    }
}